package com.home.model;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity(name="Status")
@Table(name="STATUS")
public class Status implements Serializable {
   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name="status_id")
   private Long id;
   
   @Enumerated(EnumType.STRING)
   private Status status;
   
   @OneToOne(mappedBy = "status", fetch = FetchType.LAZY)
   private Email email;
   
   @OneToOne(mappedBy = "")
   private User user;
}
